<template>
  <div class="top">
    <div class="top_item">
      <a-input-search placeholder="搜索商品" enter-button />
    </div>
    <div class="top_item">
      <a-button type="primary" @click="showModel"> Open Modal </a-button>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {};
  },
  methods: {
    showModel() {
      this.$emit("showModel");
    },
  },
};
</script>

<style lang="less" scoped>
.top {
  display: flex;
  margin-bottom: 20px;
  .top_item {
    margin: 0 20px;
  }
}
</style>